/**
 * 
 */
package com.ruyipu.forum.activity;

import java.util.List;

import org.json.JSONObject;

import android.content.Intent;
import android.os.Bundle;
import android.widget.ListView;

import com.ruyipu.forum.R;
import com.ruyipu.forum.adapter.CommentAdapter;
import com.ruyipu.forum.base.Header;
import com.ruyipu.forum.interfaces.IItem;
import com.ruyipu.forum.item.Discussion;

/**
 * @author donald
 * 
 */
public class Comments extends BaseActivity {
	public static final String TAG = Comments.class.getSimpleName();
	public static final String NAME = Comments.class.getName();

	private List<IItem> dataList;
	private CommentAdapter myAdapter;
	private ListView lvComments;
	
	private Discussion discussion;

	@Override
	protected void onCreate(Bundle savedInstanceState) {

		Intent intent = getIntent();
		discussion = (Discussion) intent
				.getSerializableExtra(Discussion.TAG);
		if (discussion == null) {
			finish();
		}

		super.onCreate(savedInstanceState);
		refresh(null);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.ruyipu.forum.activity.BaseActivity#makeWidget()
	 */
	@Override
	protected void makeWidget() {

		setContentView(R.layout.comments);

		myHeader = new Header(this, R.string.comments);

		lvComments = (ListView) findViewById(R.id.lvComments);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.ruyipu.forum.activity.BaseActivity#initWidget()
	 */
	@Override
	protected void initWidget() {

	}

	@Override
	protected void updateData(JSONObject jsonObject) {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected void loadLocalData() {
		// TODO Auto-generated method stub
		
	}
}
